package cc.facesign.acl.mapper;

import cc.facesign.acl.bean.AclRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单关联表 Mapper 接口
 * </p>
 *
 * @author acdongla
 * @since 2022-05-02
 */
public interface AclRoleMenuMapper extends BaseMapper<AclRoleMenu> {

    void relateBatch(List<AclRoleMenu> list);

    void deleteByRoleId(String roleId);

    int existRelate(@Param("roleId") String roleId, @Param("menuId") String menuId);
}
